﻿<Window x:Class="EasyVideoEditor.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:convert="clr-namespace:EasyVideoEditor.Converters"
        xmlns:controls="clr-namespace:EasyVideoEditor.Controls"
        Title="Easy Video Cropper" Height="565" Width="773" xmlns:my="clr-namespace:EasyVideoEditor" xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" Loaded="Window_Loaded">
    <Window.Resources>
        <convert:ReverseBooleanConverter x:Key="ReverseBooleanConverter1" />
    </Window.Resources>
    <Grid>
        <Button Content="Open Video" Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" Name="btnOpenVideo" VerticalAlignment="Top" Width="75" Click="btnOpenVideo_Click" />
        <Label Content="top:" Height="28" HorizontalAlignment="Left" Margin="30,51,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="bottom:" Height="28" HorizontalAlignment="Left" Margin="9,85,0,0" Name="label2" VerticalAlignment="Top" />
        <Label Content="left:" Height="28" HorizontalAlignment="Left" Margin="30,119,0,0" Name="label3" VerticalAlignment="Top" />
        <Label Content="right:" Height="28" HorizontalAlignment="Left" Margin="22,153,0,0" Name="label4" VerticalAlignment="Top" />
        <my:CroppingControl Height="255" Margin="0,56,12,0" x:Name="croppingControl1" VerticalAlignment="Top" HorizontalAlignment="Right" Width="422" IsEnabled="False" CroppingChanged="croppingControl1_CroppingChanged" />
        <extToolkit:IntegerUpDown Height="23" HorizontalAlignment="Left" Margin="67,56,0,0" Name="iudTop" VerticalAlignment="Top" Width="120" Value="0" ValueChanged="iudCroppingControls_ValueChanged" Minimum="0" IsEnabled="False" />
        <extToolkit:IntegerUpDown Height="23" HorizontalAlignment="Left" Margin="67,90,0,0" Name="iudBottom" VerticalAlignment="Top" Width="120" Value="0" ValueChanged="iudCroppingControls_ValueChanged" Minimum="0" IsEnabled="False" />
        <extToolkit:IntegerUpDown Height="23" HorizontalAlignment="Left" Margin="67,124,0,0" Name="iudLeft" VerticalAlignment="Top" Width="120" Value="0" ValueChanged="iudCroppingControls_ValueChanged" Minimum="0" IsEnabled="False" />
        <extToolkit:IntegerUpDown Height="23" HorizontalAlignment="Left" Margin="67,158,0,0" Name="iudRight" VerticalAlignment="Top" Width="120" Value="0" ValueChanged="iudCroppingControls_ValueChanged" Minimum="0" IsEnabled="False" />
        <Expander Header="Advanced" Margin="12,187,440,63" Name="expanderAdvanced" IsEnabled="False">
            <ScrollViewer>
                <Grid VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition Width="30" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Video Bitrate:" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label6" VerticalAlignment="Top" />
                    <Label Content="Audio Bitrate:" Height="28" HorizontalAlignment="Left" Margin="4,40,0,0" Name="label7" VerticalAlignment="Top" />
                    <Label Content="Video Codec:" Height="28" HorizontalAlignment="Left" Margin="6,74,0,0" Name="label8" VerticalAlignment="Top" />
                    <Label Content="Audio Codec:" Height="28" HorizontalAlignment="Left" Margin="5,108,0,0" Name="label9" VerticalAlignment="Top" />
                    <extToolkit:IntegerUpDown Height="23" Margin="93,7,0,0" Minimum="0" Name="iudVideoBitrate" Value="0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="107" IsEnabled="{Binding ElementName=cb_rec_VideoBitrate, Path=IsChecked, Converter={StaticResource ReverseBooleanConverter1}}" />
                    <Label Content="Kbps" Height="28" HorizontalAlignment="Left" Margin="208,6,0,0" Name="label10" VerticalAlignment="Top" />
                    <extToolkit:IntegerUpDown Height="23" Margin="93,41,0,0" Minimum="0" Name="iudAudioBitrate" Value="0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="107" IsEnabled="{Binding ElementName=cb_rec_AudioBitrate, Path=IsChecked, Converter={StaticResource ReverseBooleanConverter1}}" />
                    <Label Content="Kbps" Height="28" HorizontalAlignment="Left" Margin="208,40,0,0" Name="label11" VerticalAlignment="Top" />
                    <ComboBox Height="24" HorizontalAlignment="Left" Margin="93,74,0,0" Name="cboVideoCodec" VerticalAlignment="Top" Width="107" IsEnabled="{Binding ElementName=cb_rec_VideoCodec, Path=IsChecked, Converter={StaticResource ReverseBooleanConverter1}}">
                        <sys:String>flv</sys:String>
                        <sys:String>h264</sys:String>
                        <sys:String>mpeg4</sys:String>
                        <sys:String>msmpeg4</sys:String>
                        <sys:String>msmpeg4v2</sys:String>
                        <sys:String>wmv1</sys:String>
                        <sys:String>wmv2</sys:String>
                        <sys:String>mpeg1video</sys:String>
                        <sys:String>vc1</sys:String>
                        <sys:String>wmv3</sys:String>
                    </ComboBox>
                    <ComboBox Height="24" HorizontalAlignment="Left" Margin="93,108,0,0" Name="cboAudioCodec" VerticalAlignment="Top" Width="107" IsEnabled="{Binding ElementName=cb_rec_AudioCodec, Path=IsChecked, Converter={StaticResource ReverseBooleanConverter1}}">
                        <sys:String>aac</sys:String>
                        <sys:String>dca</sys:String>
                        <sys:String>liba52</sys:String>
                        <sys:String>mp3</sys:String>
                        <sys:String>wmav2</sys:String>
                        <sys:String>wmav3</sys:String>
                    </ComboBox>
                    <CheckBox Grid.Column="1" Height="17" HorizontalAlignment="Left" Margin="6,13,0,0" Name="cb_rec_VideoBitrate" VerticalAlignment="Top" Width="18" IsChecked="True" ToolTip="Use recommended video bitrate" Checked="AdvancedSettingsCheckBoxes_Checked" />
                    <CheckBox Height="17" HorizontalAlignment="Left" IsChecked="True" Margin="6,47,0,0" Name="cb_rec_AudioBitrate" VerticalAlignment="Top" Width="18" Grid.Column="1" ToolTip="Use recommended audio bitrate" Checked="AdvancedSettingsCheckBoxes_Checked" />
                    <CheckBox Height="17" HorizontalAlignment="Left" IsChecked="True" Margin="6,81,0,0" Name="cb_rec_VideoCodec" VerticalAlignment="Top" Width="18" Grid.Column="1" ToolTip="Use recommended video codec" Checked="AdvancedSettingsCheckBoxes_Checked" />
                    <CheckBox Height="17" HorizontalAlignment="Left" IsChecked="True" Margin="6,113,0,0" Name="cb_rec_AudioCodec" VerticalAlignment="Top" Width="18" Grid.Column="1" ToolTip="Use recommended audio codec" Checked="AdvancedSettingsCheckBoxes_Checked" />
                </Grid>
            </ScrollViewer>
        </Expander>
        <GroupBox Height="51" Margin="12,0,12,6" Name="groupBox1" VerticalAlignment="Bottom">
            <Grid>
                <Button Content="Start" Height="23" HorizontalAlignment="Right" Margin="0,0,6,6" Name="btnStart" VerticalAlignment="Bottom" Width="75" Click="btnStart_Click" IsEnabled="False" />
                <ProgressBar Height="23" HorizontalAlignment="Left" Margin="94,15,0,0" Name="progressBar1" VerticalAlignment="Top" Width="495" />
                <Label Content="0%" Height="23" HorizontalAlignment="Left" Margin="6,15,0,0" Name="lblProgress" VerticalAlignment="Top" Width="82" />
            </Grid>
        </GroupBox>
        <Button Content="Re-Analyze Video" Height="23" HorizontalAlignment="Left" Margin="91,10,0,0" Name="btnAnalyze" VerticalAlignment="Top" Width="112" Click="btnAnalyze_Click" IsEnabled="False" />
        <controls:DropDownButton Height="23" HorizontalAlignment="Left" Margin="709,12,0,0" x:Name="btnAbout" VerticalAlignment="Top" Width="30" Padding="0">
            <Image Source="/EasyVideoEditor;component/Images/help.png" />
            <controls:DropDownButton.DropDown>
                <ContextMenu>
                    <MenuItem Header="Documentation..." Name="mniDocs" Click="mniDocs_Click" />
                    <MenuItem Header="Website..." Name="mniWebsite" Click="mniWebsite_Click" />
                    <MenuItem Header="About Easy Video Cropper..." Name="mniAbout" Click="mniAbout_Click" />
                </ContextMenu>
            </controls:DropDownButton.DropDown>
        </controls:DropDownButton>
        <Slider Height="26" Margin="0,316,12,0" Name="sliderFramePick" VerticalAlignment="Top" HorizontalAlignment="Right" Width="424" ValueChanged="sliderFramePick_ValueChanged" StylusButtonUp="sliderFramePick_StylusButtonUp" MouseUp="sliderFramePick_MouseUp" PreviewMouseUp="sliderFramePick_PreviewMouseUp" />
    </Grid>
</Window>
